package proxy;

import java.lang.reflect.Proxy;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName Test.java
 * @Description TODO
 * @createTime 2021年06月29日 22:43:00
 */
public class Test {
    public static void main(String[] args) {

        CountImpl countImpl = new CountImpl();

//        CountProxy countProxy = new CountProxy(countImpl);

        CountDProxy dProxy = new CountDProxy();

//        countProxy.queryCount();
//
//        countProxy.updateCount();

        Count count = (Count) dProxy.bind(countImpl);

        count.queryCount();

        count.updateCount();

    }
}
